package com.twl.app.base.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 考勤模板
 * 
 * @author uatzhangxc
 * 
 */

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
@Table(name = "Checktemplet")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_Checktemplet_DID", allocationSize = 1)
public class Checktemplet implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer did;	//主键
	
	private String period; // 期间
	private String staffint; //工号
	private String idNumber; //身份证号
	private String staffname; // 姓名
	private String directlydept; // 直属部门
	private String staffjob; // 职位
	private Double heartmum; // 心尚妈咪月
	private Double leaveday; // 年假天数
	private Double leavenianjia; // 离职剩余年假
	private Double marryday; // 婚假天数
	private Double funeralday; // 丧假天数
	private Double maternityday; // 产假天数
	private Double paidday; // 带薪事假(带薪病假天数)
	private Double sickday; // 病假天数(扣薪病假天数)
	private Double personalday; // 事假天数
	private Double lactatiaonday; // 哺乳假
	private Double absentday; // 旷工天数
	private Double workovertime; // 工作日加班
	private Double restovertime; // 休息日加班
	private Double holidayovertime; // 节假日加班
	private Integer overtimemealnum; // 加班餐贴个数
	private Integer aban; // A班
	private Integer bban; // B班
	private Integer eban; // E班
	private Integer cban; // C班
	private Integer dban; // D班
	private Integer caban; // CA班
	private Integer cbban; // CB班
	private Integer nightban; // 晚班
	private Integer morningban; // 早班
	private Integer customerhourtwo; // 客服1.2倍
	private Integer customerhourthree; // 客服1.3倍
	private Integer nightcar; // 夜班车贴
	
	private Double nighthour; // 夜班小时数
 
	public Checktemplet() {
		super();
	}

	public Checktemplet(Integer did, String period, String staffint, String idNumber, String staffname, String directlydept, String staffjob, Double heartmum, Double leaveday, Double leavenianjia, Double marryday, Double funeralday, Double maternityday, Double paidday, Double sickday, Double personalday, Double lactatiaonday, Double absentday, Double workovertime, Double restovertime, Double holidayovertime, Integer overtimemealnum, Integer aban, Integer bban, Integer eban, Integer cban, Integer dban, Integer caban, Integer cbban, Integer nightban, Integer morningban, Integer customerhourtwo, Integer customerhourthree, Integer nightcar, Double nighthour) {
		super();
		this.did = did;
		this.period = period;
		this.staffint = staffint;
		this.idNumber = idNumber;
		this.staffname = staffname;
		this.directlydept = directlydept;
		this.staffjob = staffjob;
		this.heartmum = heartmum;
		this.leaveday = leaveday;
		this.leavenianjia = leavenianjia;
		this.marryday = marryday;
		this.funeralday = funeralday;
		this.maternityday = maternityday;
		this.paidday = paidday;
		this.sickday = sickday;
		this.personalday = personalday;
		this.lactatiaonday = lactatiaonday;
		this.absentday = absentday;
		this.workovertime = workovertime;
		this.restovertime = restovertime;
		this.holidayovertime = holidayovertime;
		this.overtimemealnum = overtimemealnum;
		this.aban = aban;
		this.bban = bban;
		this.eban = eban;
		this.cban = cban;
		this.dban = dban;
		this.caban = caban;
		this.cbban = cbban;
		this.nightban = nightban;
		this.morningban = morningban;
		this.customerhourtwo = customerhourtwo;
		this.customerhourthree = customerhourthree;
		this.nightcar = nightcar;
		this.nighthour = nighthour;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "instance_sequence")
	public Integer getDid() {
		return did;
	}

	public void setDid(Integer did) {
		this.did = did;
	}

	@Column(name = "staffint")
	public String getStaffint() {
		return staffint;
	}

	public void setStaffint(String staffint) {
		this.staffint = staffint;
	}
	
	@Column(name = "ID_NUMBER")
	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	@Column(name = "period")
	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public String getStaffname() {
		return staffname;
	}

	public void setStaffname(String staffname) {
		this.staffname = staffname;
	}

	@Column(name = "directlydept")
	public String getDirectlydept() {
		return directlydept;
	}

	public void setDirectlydept(String directlydept) {
		this.directlydept = directlydept;
	}

	@Column(name = "staffjob")
	public String getStaffjob() {
		return staffjob;
	}

	public void setStaffjob(String staffjob) {
		this.staffjob = staffjob;
	}

	@Column(name = "heartmum")
	public Double getHeartmum() {
		return heartmum;
	}

	public void setHeartmum(Double heartmum) {
		this.heartmum = heartmum;
	}

	@Column(name = "leaveday")
	public Double getLeaveday() {
		return leaveday;
	}

	public void setLeaveday(Double leaveday) {
		this.leaveday = leaveday;
	}

	@Column(name = "marryday")
	public Double getMarryday() {
		return marryday;
	}

	public void setMarryday(Double marryday) {
		this.marryday = marryday;
	}

	@Column(name = "funeralday")
	public Double getFuneralday() {
		return funeralday;
	}

	public void setFuneralday(Double funeralday) {
		this.funeralday = funeralday;
	}

	@Column(name = "maternityday")
	public Double getMaternityday() {
		return maternityday;
	}

	public void setMaternityday(Double maternityday) {
		this.maternityday = maternityday;
	}

	@Column(name = "sickday")
	public Double getSickday() {
		return sickday;
	}

	public void setSickday(Double sickday) {
		this.sickday = sickday;
	}

	@Column(name = "personalday")
	public Double getPersonalday() {
		return personalday;
	}

	public void setPersonalday(Double personalday) {
		this.personalday = personalday;
	}

	@Column(name = "lactatiaonday")
	public Double getLactatiaonday() {
		return lactatiaonday;
	}

	public void setLactatiaonday(Double lactatiaonday) {
		this.lactatiaonday = lactatiaonday;
	}

	@Column(name = "paidday")
	public Double getPaidday() {
		return paidday;
	}

	public void setPaidday(Double paidday) {
		this.paidday = paidday;
	}

	@Column(name = "absentday")
	public Double getAbsentday() {
		return absentday;
	}

	public void setAbsentday(Double absentday) {
		this.absentday = absentday;
	}

	@Column(name = "workovertime")
	public Double getWorkovertime() {
		return workovertime;
	}

	public void setWorkovertime(Double workovertime) {
		this.workovertime = workovertime;
	}

	@Column(name = "restovertime")
	public Double getRestovertime() {
		return restovertime;
	}

	public void setRestovertime(Double restovertime) {
		this.restovertime = restovertime;
	}

	@Column(name = "holidayovertime")
	public Double getHolidayovertime() {
		return holidayovertime;
	}

	public void setHolidayovertime(Double holidayovertime) {
		this.holidayovertime = holidayovertime;
	}

	@Column(name = "aban")
	public Integer getAban() {
		return aban;
	}

	public void setAban(Integer aban) {
		this.aban = aban;
	}

	@Column(name = "Bban")
	public Integer getBban() {
		return bban;
	}

	public void setBban(Integer bban) {
		this.bban = bban;
	}

	@Column(name = "Eban")
	public Integer getEban() {
		return eban;
	}

	public void setEban(Integer eban) {
		this.eban = eban;
	}

	@Column(name = "cban")
	public Integer getCban() {
		return cban;
	}

	public void setCban(Integer cban) {
		this.cban = cban;
	}

	@Column(name = "dban")
	public Integer getDban() {
		return dban;
	}

	public void setDban(Integer dban) {
		this.dban = dban;
	}

	@Column(name = "caban")
	public Integer getCaban() {
		return caban;
	}

	public void setCaban(Integer caban) {
		this.caban = caban;
	}

	@Column(name = "cbban")
	public Integer getCbban() {
		return cbban;
	}

	public void setCbban(Integer cbban) {
		this.cbban = cbban;
	}

	@Column(name = "nightban")
	public Integer getNightban() {
		return nightban;
	}

	public void setNightban(Integer nightban) {
		this.nightban = nightban;
	}

	@Column(name = "morningban")
	public Integer getMorningban() {
		return morningban;
	}

	public void setMorningban(Integer morningban) {
		this.morningban = morningban;
	}

	@Column(name = "overtimemealnum")
	public Integer getOvertimemealnum() {
		return overtimemealnum;
	}

	public void setOvertimemealnum(Integer overtimemealnum) {
		this.overtimemealnum = overtimemealnum;
	}

	@Column(name = "leavenianjia")
	public Double getLeavenianjia() {
		return leavenianjia;
	}

	public void setLeavenianjia(Double leavenianjia) {
		this.leavenianjia = leavenianjia;
	}

	@Column(name = "nightcar")
	public Integer getNightcar() {
		return nightcar;
	}

	public void setNightcar(Integer nightcar) {
		this.nightcar = nightcar;
	}

	@Column(name = "nighthour")
	public Double getNighthour() {
		return nighthour;
	}

	public void setNighthour(Double nighthour) {
		this.nighthour = nighthour;
	}

	@Column(name = "customerhourtwo")
	public Integer getCustomerhourtwo() {
		return customerhourtwo;
	}

	public void setCustomerhourtwo(Integer customerhourtwo) {
		this.customerhourtwo = customerhourtwo;
	}

	@Column(name = "customerhourthree")
	public Integer getCustomerhourthree() {
		return customerhourthree;
	}

	public void setCustomerhourthree(Integer customerhourthree) {
		this.customerhourthree = customerhourthree;
	}

	@Override
	public String toString() {
		return "Checktemplet [did=" + did + ", staffint=" + staffint
				+ ", period=" + period + ", staffname=" + staffname
				+ ", directlydept=" + directlydept + ", staffjob=" + staffjob
				+ ", heartmum=" + heartmum + ", leaveday=" + leaveday
				+ ", marryday=" + marryday + ", funeralday=" + funeralday
				+ ", maternityday=" + maternityday + ", sickday=" + sickday
				+ ", personalday=" + personalday + ", lactatiaonday="
				+ lactatiaonday + ", paidday=" + paidday + ", absentday="
				+ absentday + ", workovertime=" + workovertime
				+ ", restovertime=" + restovertime + ", holidayovertime="
				+ holidayovertime + ", aban=" + aban + ", bban=" + bban
				+ ", eban=" + eban + ", cban=" + cban + ", dban=" + dban
				+ ", caban=" + caban + ", cbban=" + cbban + ", nightban="
				+ nightban + ", morningban=" + morningban
				+ ", overtimemealnum=" + overtimemealnum + ", leavenianjia="
				+ leavenianjia + ", nightcar=" + nightcar + ", nighthour="
				+ nighthour + ", customerhourtwo=" + customerhourtwo
				+ ", customerhourthree=" + customerhourthree + "]";
	}

}
